#include "AiMgr.h"
#include "Ai.h"
CAiMgr* CAiMgr::_instance = nullptr;
CAiMgr::CAiMgr()
{
}

CAiMgr::~CAiMgr()
{
}

CAiMgr* CAiMgr::getInstance()
{
	if (!_instance){
		_instance = new CAiMgr();
	}
	return _instance;
}



function<void(void)> CAiMgr::getAi(CEnemy* enemy, string sort)
{
	if (sort == "berserker"){
		CAiBase* berserkerAi = new CBerserkerAi();
		berserkerAi->init(enemy);
		return bind(&CAiBase::ai,berserkerAi);
	}
	
}


